<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板广告</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
            <script type="text/javascript" src="${base}/jstool/bootstrap-switch/bootstrap-switch.min.js"></script>
            <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-switch/bootstrap-switch.min.css" />
            <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
            <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
            <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
      <style type="text/css">
        .table-class{
            width:90%;
            text-align: center;
            border:1px solid #afd9ee;
            margin:0 auto;
            margin-top: 50px;
        }
        .list-path{
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;

        }
        table th{
            text-align: center;
            WORD-WRAP: break-word;
            width: 100px;
        }
        table thead tr {
            background-color: #9acfea;
        }
        .table-query{
            /*height: 40px;*/
            /*width:80px;*/
            /*text-align: center;*/
            white-space:nowrap;
            /*position: relative;*/
            float: left;
            display:inherit;
            /*display: inline;*/


        }
        .label-head{
            height: 60px;
            width: 100%;
        }
        .bs-example .input-group{
            width:300px;
            float: left;
            margin-top:20px;

        }
        .bank-label{
            width:25px;
            float: left;
        }
        .label-hidden{
            display: none;
        }
        .panel-body{
            padding-top: 0px;
        }
       /* .input-group{
            margin-top:20px;
        }*/
    </style>
    <script type="text/javascript">
       
    </script>
</head>
<body>

<div class="list-path" > <span style="margin-left: 50px;"><span class="glyphicon glyphicon-home"></span>模板广告</span></div>

<div class="table-class">


<#include "/view/admin/opermsg.html"/>


    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>序号</th>
                <th class="label-hidden">主键</th>
                <th>模板主题</th>
                <th>视频链接</th>
            
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.templateId!}</td>
                            <td>${c.templateName!}</td>

                            <td>${c.videoUrl!}</td>


                <td>
                    <a href="${base}/template/czjtemplateDetail?templateId=${c.templateId!}" class="btn btn-primary">详情</a>
                    <a href="${base}/template/goupdate?templateId=${c.templateId!}" class="btn btn-primary">修改</a>
                    <a href="javascript:doDelete('${c.templateId!?string }')"  class="btn btn-primary">删除</a>
                </td>
            </tr>
            <script>
            
		        	function doDelete(id){
		        		if(window.confirm("你确定删除吗?")){
		        				window.location="${base}/template/czjtemplateDelete?ids="+id;
		        		}
		        	}
            
            </script>


        </#list>
        <#if 0==pagination.totalCount>
            <tr>
                <td colspan="7" style="color: red"> 没有相关数据 </td>
            </tr>
        </#if>
       <!--  <tr>
            <td colspan="10+1">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/shop/add.do" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr> -->





        </tbody>
    </table>
        <!--<span style="text-align: left"> <a href="#" class="btn btn-primary">新增</a></span>-->
    <ul class="pagination" >



    </ul>


</div>
<script>
    function setPage(pageNo,pageSize){
        var href = "${base}/shop/list.do?";

            href+='title='+$('#title').val()+"&";




            href+='updateDateStart='+$('#updateDateStart').val()+"&";
            href+='updateDateEnd='+$('#updateDateEnd').val()+"&";

            href+='createtimeStart='+$('#createtimeStart').val()+"&";
            href+='createtimeEnd='+$('#createtimeEnd').val()+"&";

            href+='display='+$('#display').val()+"&";



        href+="&pageNo="+pageNo;
        href+="&pageSize="+pageSize;
        location.href=href;
    }

</script>

</body>
</html>
